!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>UserInfo</title>
  <!-- 新 Bootstrap4 核心 CSS 文件 -->
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
  <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
  <!-- bootstrap.bundle.min.js 用于弹窗、提示、下拉菜单，包含了 popper.min.js -->
  <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
  <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
  <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<div id="modifyUser" class="container w-50 mt-0 mx-auto">
  <form name="modifyUser">
    <div class="form-group">
      <label for="id">ID:</label>
      <input type="text" class="form-control" name="id" id="id" th:value="${user.getId()}" disabled>
    </div>
    <div class="form-group">
      <label for="name">ID:</label>
      <input type="text" class="form-control" name="name" id="name" th:value="${user.getName()}" >
    </div>
    <div class="form-group">
      <label for="pwd">ID:</label>
      <input type="text" class="form-control" name="pwd" id="pwd" th:value="${user.getPassword()}" >
    </div>
    <div class="form-group">
      <label for="role">role:</label>
      <select class="form-control" name="role" id="role" th:value="${user.getRole()}">
        <option th:selected="${user.getRole()=='admin'}" value="admin">admin</option>
        <option th:selected="${user.getRole()=='user'}" value="user">user</option>
      </select>
    </div>
  </form>
  <div class="text-center">
    <button id = "modify">ModifyUser</button>
  </div>
</div>
</body>